<template>
    <div class="indexpage">
        <div @click="tostudent"><span>学生通道</span></div>
        <div @click="toadmin"><span>管理通道</span></div>
    </div>
</template>

<script>
export default {
name: 'Index',
components: {

},
methods: {
    tostudent() {
        this.$router.push('/student')
    },
    toadmin() {
        this.$router.push('/admin')
    }
}
}
</script>

<style>
    body {
        background-color: #2c3e50;
    }

    .indexpage {
        width: 40em;
        height: auto;
        margin: 0 auto;
        padding-top: 6em;
        display: flex;
        flex-direction: column;
    }

    .indexpage div {
        width: 100%;
        height: 4em;
        margin-bottom: 2.5em;
        border-radius: 1.5em;
        text-align: center;
        line-height: 4em;
        background-color: rgba(240, 255, 255, 0.6);
        cursor: pointer;
    }

    .indexpage div:hover {
        background-color: rgba(240, 255, 255, 0.75);
        transform: scale(1.02);
        transition: 0.5s;
    }

    .indexpage span {
        font-size: 1.5em;
        font-weight: bold;
        letter-spacing: 0.25em;
        color: aliceblue;
    }
</style>